package com.malty.apimanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.malty.apimanage.domain.dto.user.api.UserApiStatistic;
import com.malty.common.domain.entity.UserApiInfo;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【user_api_info】的数据库操作Service
 * @createDate 2025-09-29 15:52:00
 */
public interface UserApiInfoService extends IService<UserApiInfo> {
    /**
     * 查询用户api接口调用次数
     *
     * @param userId 用户id
     * @param apiId  接口id
     * @return
     */
    Long getUserApiInvokeCount(Long userId, Long apiId);

    UserApiInfo getUserApiInfo(Long userId, Long apiId);
    
    List<UserApiStatistic> getApiStatistics();
}
